package com.bookm.bookm.entity;

import java.util.Date;

/**
 * 图书信息实体类
 */
public class Book {
    // 图书编号
    private String bookId;
    // 图书名
    private String bookName;
    // 作者
    private String author;
    // 出版社
    private String publisher;

    private Double bookPrice;
    // 摘要
    private String descr;
    // 类别
    private Integer class_;
    // 数量
    private Integer num;
    // 封面图
    private String bookCover;
    // 添加时间
    private Date rdDate;
    public Book(){}
    public Book(String bookId, String bookName, String author, String publisher, Double bookPrice, String descr, Integer class_,Integer num, String bookCover) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.author = author;
        this.publisher = publisher;
        this.bookPrice = bookPrice;
        this.descr = descr;
        this.class_ = class_;
        this.num = num;
        this.bookCover = bookCover;
    }

    public Date getRdDate() {
        return rdDate;
    }

    public void setRdDate(Date rdDate) {
        this.rdDate = rdDate;
    }

    public String getBookCover() {
        return bookCover;
    }

    public void setBookCover(String bookCover) {
        this.bookCover = bookCover;
    }

    public Integer getNum() {return num;}

    public void setNum(Integer num) {this.num = num;}

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public Double getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(Double bookPrice) {
        this.bookPrice = bookPrice;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public Integer getClass_() {
        return class_;
    }

    public void setClass_(Integer class_) {
        this.class_ = class_;
    }
}
